<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./js/jquery.js"></script>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .warp {
        width: 800px;
        height: 400px;
        border: 1px solid blue;
        margin: 30px auto;
        position: relative;
      }
       span{
         position: absolute;
         display: block;
         width: 60px;
         height: 100px;
         line-height: 100px;
         text-align: center;
         cursor: pointer;
         background-color: rgb(255,255,255,.3);
         /* z-index: 20px; */
         font-size: 60px;
          color: white;
          display: none;
       }
 
      .warp .wrapUp .left{
        float: left;
        margin-top: 20%;
      }

       .warp .wrapUp .right{
       margin-left: 740px;
        margin-top: 20%;
      }

      .warp .wrapDown ol li {
        z-index: 100;
        list-style: none;
        float: left;
        color: white;
        display: none;
      }

      .warp .wrapUp ul li {
        width: 100%;
        list-style: none;
        position: absolute;
      }
      .warp .wrapUp ul li img {
        width: 100%;
        height: 400px;
        /* display: none; */
      }
      .warp .wrapDown {
        position: absolute;
        left: 22%;
        bottom: 10px;
      }
      .warp .wrapDown ol li {
        width: 100px;
        height: 30px;
        margin-left: 20px;
        border: 1px solid rebeccapurple;
        text-align: center;
        line-height: 30px;
        cursor: pointer;
      }
    </style>
  </head>
  <body>
    <div class="warp">
      <div class="wrapUp">
        <ul>
          <li style="display: block">
            <img src="./img/美女1.webp" alt="" title="美女1" />
          </li>
          <li>
            <img src="./img/美女2.webp" alt="" title="美女2" />
          </li>
          <li>
            <img src="./img/美女3.webp" alt="" title="美女3" />
          </li>
          <li>
            <img src="./img/美女4.webp" alt="" title="美女4" />
          </li>
        </ul>
        <span class="left">&lt;</span>
        <span class="right">&gt;</span>
      </div>
      <div class="wrapDown">
        <ol>
          <li>美女1</li>
          <li>美女2</li>
          <li>美女3</li>
          <li>美女4</li>
        </ol>
      </div>
    </div>
    <script>
        $(function(){


        $(".warp .wrapUp ul li").mouseenter(function(){
           $("span").show();
           $(".wrapDown ol li").show();
             let index=$(this).index()
           $(this).eq(index).stop().fadeIn().siblings().stop().fadeOut()

        })
       
        })
    </script>
  </body>
</html>
